<?php require_once($_SERVER['DOCUMENT_ROOT']."/defaultconf.mex");
	require_once($GLOBALS['LIB']."/Pr_db/pr_selects.php");
	MYTCONN(); 
	$MODE = '';
	if(isset($_GET['CFBK'])) {
		#IF CFBK IS INT
		$GET = $GLOBALS['MYT']->db_array($qrBK.$_GET['CFBK']);
	} else {
		$DGET = $GLOBALS['MYT']->db_array("DESCRIBE hd_bancos");
		$GET = array();
		for($i=1;$i<=$DGET[0];$i++) {
			$GET[1][$DGET[$i]['Field']] = '';
		}
	}
	if($GET[1]['bp_Country'] == 76) { $MODE = ' disabled '; }
	form_pr('cfbk_edit','','','post');
	echo '<label style="position:absolute;top:10px;left:20px">Numero Banco:</label>';
	mn_field('text','ED','bp_ID',$GET[1]['bp_ID'],'','','','" '.$MODE.' style="position:absolute;top:10px;left:100px" readonly="'); 
	echo '<label style="position:absolute;top:10px;left:400px">Registo Nacional:</label>';
	mn_field('text','ED','bp_IdBanco',$GET[1]['bp_IdBanco'],'','','','" '.$MODE.' style="position:absolute;top:10px;left:500px'); 
	
	echo '<label style="position:absolute;top:50px;left:20px">Situacao:</label>';
		mn_field('select','ED','bp_Flag',$GET[1]['bp_Flag'],$qrFlag."23",'','','" '.$MODE.' style="position:absolute;top:50px;left:100px');
	echo '<label style="position:absolute;top:50px;left:400px">Pais:</label>';
	mn_field('select','ED','bp_Country',$GET[1]['bp_Country'],$qrCountry,'','','" '.$MODE.' style="position:absolute;top:50px;left:500px');
	echo '<label style="position:absolute;top:120px;left:20px">Nome:</label>';
	mn_field('text','ED','bp_Name',$GET[1]['bp_Name'],'120','120','','" '.$MODE.' style="position:absolute;top:120px;left:100px'); 

	echo '<label style="position:absolute;top:150px;left:20px">EndereÇo:</label>';
	mn_field('text','ED','OFDIreccion','','150','120','','" disabled style="position:absolute;top:150px;left:100px'); 
	mn_field('text','ED','OFMasDatos','','120','120','','" disabled style="position:absolute;top:175px;left:100px'); 
	
	echo '<label style="position:absolute;top:200px;left:100px">Telefone</label>';
	echo '<label style="position:absolute;top:230px;left:100px">Telefone Outro</label>';
	mn_field('text','ED','OFTelefonos1','','40','40','','" disabled style="position:absolute;top:200px;left:220px');
	mn_field('text','ED','OFTelefonos2','','40','40','','" disabled style="position:absolute;top:230px;left:220px');
	echo '<label style="position:absolute;top:300px;left:100px">Horario Semana:</label>';
	mn_field('text','ED','OfHorSem','','50','50','','" disabled style="position:absolute;top:300px;left:220px');
	echo '<label style="position:absolute;top:330px;left:100px">Horario Sabado:</label>';
	mn_field('text','ED','OfHorSab','','50','50','','" disabled style="position:absolute;top:330px;left:220px');
	echo '<label style="position:absolute;top:360px;left:100px">Horario Domingo:</label>';
	mn_field('text','ED','OfHorDom','','50','50','','" disabled style="position:absolute;top:360px;left:220px');
	echo '<label style="position:absolute;top:390px;left:20px">Observacoes:</label>';
	mn_field('text','ED','OFObs','','120','120','','" disabled style="position:absolute;top:390px;left:100px'); 
	mn_field('button','ED','BKSubmit','Guardar','','','','" '.$MODE.' style="height:30px;position:absolute;top:425px;left:100px" onclick="
			document.cfbk_edit.action=\'_response/rsproxy.php?pr=cf_bank\';
			subform(\'cfbk_edit\',\'rsBK\');'); 
	echo '<div id="rsBK" style="height:30px;position:absolute;top:425px;left:200px"></div>';
	echo '</form>';